libxl_wait_for_memory_target: wait as long as dom0 is making progress
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 6 Mar 2015 17:19:15 +0000 (17:19 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 11 Mar 2015 11:36:38 +0000 (11:36 +0000)
commitfd3aa246f1cdfc8d017282662706fd5973961d68
treed4471d5eadcbd031c13989d2664931366432b038
parentb022d88b4dd4e176c447911f65208c12d5f9a903
libxl_wait_for_memory_target: wait as long as dom0 is making progress

Decrement wait_secs only if dom0 is making no progress toward reaching
the balloon target, otherwise loop again for free.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Mike Latimer <mlatimer@suse.com>
Tested-by: Mike Latimer <mlatimer@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl_cmdimpl.c